import type { AxiosResponseType } from '@/types/http'
import { requestAPI } from '@/utils/http/request'
/**
 * 文件传输统计
 */
export const getFileTransfer = () => {
  const url = `/admin-api/business/stats/file/transfer`
  return requestAPI.get<
    AxiosResponseType<{
      df_info_size: string
      pull_file_count: number
      transfer_info_list: {
        duration: number
        end_time: number
        file_name: string
        file_size: number
        speed: number
        start_time: number
      }[]
      transfer_stat_basic: {
        transfer_stat_avg_sizes: string
        transfer_stat_avg_speeds: number
        transfer_stat_max_sizes: string
        transfer_stat_max_speeds: number
        transfer_stat_min_sizes: string
        transfer_stat_min_speeds: number
      }
    }>
  >(url)
}
